﻿using System.ComponentModel.DataAnnotations;

namespace ITTestingSystem.Domain.Entities
{
    /// <summary>
    /// Specifies the topic of the test
    /// </summary>
    /// 
    public class TestsTopic
    {
        /// <summary>
        /// Unique identifier of the topic in the database table
        /// </summary>
        /// 
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// Title of the topic
        /// </summary>
        /// 
        [Required]
        public string Title { get; set; }

        /// <summary>
        /// Unique identifier of the descriptions entity with this topic
        /// </summary>
        /// 
        [Required]
        public int TestDescriptionId { get; set; }




        /// <summary>
        /// Tests description entity with this topic
        /// </summary>
        /// 
        [Required]
        public virtual TestsDescription TestsDescription { get; set; }
    }
}
